/*********************************************************************
*
*   Joystick.h - Joystick class
*
*   COPYRIGHT:
*       Software source code by Alex Morozov and Chris D. Locke is
*       licensed under a Creative Commons Attribution-Noncommercial-
*       Share Alike 3.0 United States License
*       (http://creativecommons.org/licenses/by-nc-sa/3.0/us/)
*
*********************************************************************/
#pragma once

#include "CppBot_types.h"

/*----------------------------------------------------------
Joystick class
----------------------------------------------------------*/
class Joystick
{
UINT32                  m_port;

public:
    Joystick( UINT32 port );
    ~Joystick(void);

    enum JoystickHand
        {
        kRightHand,
        kLeftHand
        };

    float GetX( JoystickHand hand = kRightHand );
    float GetY( JoystickHand hand = kRightHand );

};

